package com.bye.xiaomi_mall.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货地址对象 td_address
 *
 * @author ruoyi
 * @date 2025-03-15
 */
public class TdAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    private String miUserToken;

    /**
     * 所属用户
     */
    @Excel(name = "所属用户")
    private Long userId;

    /**
     * 收货人名称
     */
    @Excel(name = "收货人名称")
    private String name;

    /**
     * 收货手机号
     */
    @Excel(name = "收货手机号")
    private String phone;

    /**
     * 省市区地址
     */
    @Excel(name = "省市区地址")
    private String address;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    private String addressDetail;

    /**
     * 是否为默认地址 1 是 0 不是
     */
    @Excel(name = "是否为默认地址 1 是 0 不是")
    private String isDefault;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date careteTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setCareteTime(Date careteTime) {
        this.careteTime = careteTime;
    }

    public Date getCareteTime() {
        return careteTime;
    }

    @Override
    public String toString() {
        return "TdAddress{" +
                "id=" + id +
                ", miUserToken='" + miUserToken + '\'' +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", addressDetail='" + addressDetail + '\'' +
                ", isDefault='" + isDefault + '\'' +
                ", careteTime=" + careteTime +
                '}';
    }

    public String getMiUserToken() {
        return miUserToken;
    }

    public void setMiUserToken(String miUserToken) {
        this.miUserToken = miUserToken;
    }

}
